package com.mrjy.maintain.bo;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.mrjy.common.entity.TeacherInfo;
import com.mrjy.common.entity.VideoInfo;
import com.mrjy.maintain.dto.TeacherInfoDTO;
import com.mrjy.maintain.dto.TeacherParamDTO;
import com.mrjy.maintain.dto.TeachersRecordAuthParamDTO;

public interface ITeacherInfoBo {
	
	public Object txInsert(TeacherInfoDTO info, HttpSession session);

	public int txDeleteByIds(int[] ids);
	
	public Object txUpdateById(TeacherInfoDTO info, HttpSession session);

	public TeacherInfoDTO queryById(int id);

	public Object queryPage(TeacherInfoDTO dto, HttpSession session);
	/**
	 * 根据ids禁用、起用用户
	 * @param session 
	 * @param ids
	 * @return
	 */
	public Object txUpdateDisableFlag(TeacherInfo info, HttpSession session);

    Object queryByUserId(TeacherInfo info);

    public Object txUpdateByUserId(TeacherInfo info);

	public Object exportExl(TeacherInfoDTO dto, HttpServletResponse response, HttpSession session);

    /**
     * 根据user_id删除teacher
     *
     * @param ids
     * @return
     */
    Object txDeleteTeacherByIds(int[] ids);

    Object queryTeacherWithCourse(VideoInfo videoInfo, HttpSession session);
    /**
     * 1.6.9.3 查询有回答权限的老师，可根据typeIds查询相关标签的讲师
     * @param rows
     * @param page
     * @param typeIds 用,拼接的标签Id
     * @return
     */
	public Object queryTeachersHasRecordAuth(TeachersRecordAuthParamDTO dto);

	public Object queryTeacherList(TeacherParamDTO dto);
}
